package com.link.play.fit.ai.ui.main.fragment.control

import android.content.Intent
import android.os.Bundle
import com.link.play.fit.ai.base.BaseActivity
import com.link.play.fit.ai.databinding.ControlRefundAcLayoutBinding
import com.link.play.fit.ai.ui.vip.VipPlanAc

class ControlRefundAc: BaseActivity<ControlRefundAcLayoutBinding>(ControlRefundAcLayoutBinding::inflate)   {
    private var type = ""
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        type = intent.getStringExtra("buyType") ?: ""
        initListener()

    }

    private fun initListener() = with(binding){
        continueText.setOnClickListener {
            val intent = Intent(this@ControlRefundAc,VipPlanAc::class.java)
            intent.putExtra("buyType", type)
            startActivity(intent)
//            goToAc(VipPlanAc::class.java){
//                this.putExtra("buyType", type)
//            }
            finish()
        }
    }

}